﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Variety
    {
        public int id;
        public string title;
        public double score;

        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
            }
        }
        public double Score
        {
            get
            {
                return score;
            }
            set
            {
                score = value;
            }
        }

        public void SetVariety(int id,string title,double score)
        {
            Id = id;
            Title = title;
            Score = score;
        }

        public void VarietyInfo()
        {
            Console.WriteLine("综艺编号：{0}\n综艺名称：{1}\n综艺评分：{2}\n",id,title,score);
        }
    }
}
